package com.ray.auth.system.service;

import com.ray.auth.system.table.entity.Notice;
import com.zjhc.flyhong.common.function.operator.LoginUser;
import com.zjhc.flyhong.common.function.operator.PageDto;
import com.zjhc.flyhong.common.web.Result;

public interface NoticeService {

	/**
	 * 新增
	 * @param params
	 * @param user
	 * @return
	 */
	Result<Object> addNotice(Notice params, LoginUser user);
	
    /**
     * 用户查询
     * @param id
     * @param user
     * @return
     */
	Notice queryNotice(String id, LoginUser user);
	
    /**
     * 用户修改
     * @param params
     * @param user
     * @return
     */
	Result<Object> updateNotice(Notice params, LoginUser user);
	
    /**
     * 用户删除
     * @param id
     * @param user
     * @return
     */
	Result<Object> deleteNotice(String id, LoginUser user);
	
   /**
    * 用户查询
    * @param params
    * @param page
    * @param user
    * @return
    */
	PageDto<Notice> queryNotice(Notice params, PageDto<Notice> page, LoginUser user);
    /**
     * 查询弹窗通知
     * @param user
     * @return
     */
	Notice queryFirstWindowNotice(LoginUser user);

}
